package itdep.domain.division;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author Ivan Khalopik
 * @version $Revision: 10 $ $Date: 2010-06-16 07:13:04 +0000 (Wed, 16 Jun 2010) $
 */
@Entity
@DiscriminatorValue(value = "3")
public class AcademicDepartment extends Department {

	@ManyToOne
	@JoinColumn(name = "ID_SECRETARY", nullable = true)
	private Employee secretary;

	public AcademicDepartment() {
		super(DepartmentType.ACADEMIC_DEPARTMENT);
	}

	public Employee getSecretary() {
		return secretary;
	}

	public void setSecretary(Employee secretary) {
		this.secretary = secretary;
	}
}